﻿using System;

namespace NthDownload.Agent.EventArguments
{
    public class DownloadThreadStoppedEventArgs : EventArgs
    {
        public DownloadThreadStoppedEventArgs(Exception error, bool aborted, bool canceled, bool bandwidthDepelted)
        {
            Error = error;
            Aborted = aborted;
            Canceled = canceled;
            BandwidthDepleted = bandwidthDepelted;
        }

        public Exception Error { get; private set; }
        public bool Aborted { get; private set; }
        public bool Canceled { get; private set; }
        public bool BandwidthDepleted { get; private set; }
    }
}
